import request from '@/utils/request'

export function fetchList(data) {
  return request({
    url: '/storagelist',
    method: 'post',
    data
  })
}
export function storageList(data) {
  return request({
    url: '/storagelist',
    method: 'post',
    data
  })
}
export function fetchStorage(params) {
  return request({
    url: '/storagedetail',
    method: 'post',
    params
  })
}


export function createStorage(data) {
  return request({
    url: '/storageadd',
    method: 'post',
    data
  })
}

export function createStorageUnit(data) {
  return request({
    url: '/quickadddevice',
    method: 'post',
    data
  })
}
export function updateStorage(data) {
  return request({
    url: '/storageupdate',
    method: 'post',
    data
  })
}

export function deleteStorage(data) {
  return request({
    url: '/storagedelete',
    method: 'post',
    data
  })
}
